/**
 * Created by apple on 2017/11/4.
 */
import Mock from 'mock'

Mock.mock({
  'GET /xnw/indexPageList': (req, res) => {
    let data = Mock.mock({
      "actualEndDateStr": "@string",
      "actualStartDateStr": "@string",
      "completionRate": "@natural(0,100)",
      "documents|5": ["@string"],
      "markers|10": [
        {
          "id|+1": 0,
          "markerDateStr": "@string",
          "markerName": "@name",
          "statusId": '@natural(0,2)',
          "statusName": "@name"
        }
      ],
      "name": "@name",
      "outputSum": 1,
      "planEndDateStr": "@string",
      "planOutputArray|5": ['@natural(0,200)'],
      "planStartDateStr": "@string",
      "progressArray|5": ['@natural(0,200)'],
      "projectStatus": "@string",
      "realOutputArray|5": ['@natural(0,200)'],
      "respStaffName": 1,
      "stageName": 1
    });
    console.log(data)
    res.send({ret: data})
  },
});